From c49ad7552b3d2c639ae82f62a018e2a4f2303a5c Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Fri, 26 Jan 2007 08:36:24 +0000 Subject: [PATCH] (SIGNAL_THREAD_CHECK): Use pthread_equal. --- src/syssignal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syssignal.h b/src/syssignal.h index a4e3fcb3e1b..36292670bc6 100644 --- a/src/syssignal.h +++ b/src/syssignal.h @@ -210,7 +210,7 @@ char *strsignal (); #ifdef HAVE_GTK_AND_PTHREAD #define SIGNAL_THREAD_CHECK(signo) \ do { \ - if (pthread_self () != main_thread) \ + if (!pthread_equal (pthread_self (), main_thread)) \ { \ /* POSIX says any thread can receive the signal. On GNU/Linux \ that is not true, but for other systems (FreeBSD at least) \ -- 2.30.2